<!DOCTYPE html>
<!-- 动态设置网页内容 -->
<html lang="{{ str_replace('_','_',app()->getLocale()) }}">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- asset用于生成指向应用程序公共目录（public）中文件的 URL -->
    <link rel="stylesheet" href="{{ asset('static/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('static/css/admin.css')}}?{{ time() }}">
    @yield('css')
    <title>@yield('title','首页')</title>
</head>
<body>
    <div class="container">
        <!-- 使用yield动态插入内容 -->
        @yield('content')
    </div>
    <script src="{{ asset('static/js/jquery-3.7.1.js') }}"></script>
    <script src="{{ asset('static/js/popper.js') }}"></script>
    <script src="{{ asset('static/js/bootstrap.min.js') }}"></script>
    @yield('js')
</body>
</html>